package Tool;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

import Instrument.TestingMachine;
import MainControl.CollectionThread;

public class GlobalVariable {
    public static Map<Integer,String> testingUnitsID= new HashMap<Integer,String>();
    public static int CYCLETIME;
    public static HashMap<Integer, TestingMachine> machines = new HashMap<>();
    public static Socket dataBackSocket;
    public static OutputStream databackStream;
    public static OutputStream databackStreamHex;
    public static PrintWriter databackWriter;
    public static ServerSocket serverSocketHex;
    public static Socket socketHex;
    public static HashMap<Integer, OutputStream> commandWriters = new HashMap<>();
    public static HashMap<Integer, InputStream> dataReaders = new HashMap<>();
    public static HashMap<Integer, Socket> connections = new HashMap<>();
    public static HashMap<Integer,Thread > runningThread =new HashMap<>();
    public static HashMap<Integer,CollectionThread> collectionThreads=new HashMap<>();
}
